alien_0 = {'color': 'green', 'points': 5}

print(alien_0['color'])
print(alien_0['points'])

alien_0["x"] = 0
alien_0["y"] = 1
print(alien_0)

# 创建空字典
alien_0 = {}
alien_0["name"] = "张三"
print(alien_0)

# 删除字典中的值
del alien_0["name"]
print(alien_0)

alien_0["temp"] = "tt"
print(alien_0)
print(alien_0.get("temps", "xx"))


person = {"first_name": "san", "last_name": "zhang", "age" : 19, "city": "chengdu"}
for k, v in person.items():
    print(f"{k} {v}")


for k in person.keys():
    print(k)

for v in person.values():
    print(v)